import request from '@/utils/request';

/**
 * POST 手动创建供货计划预算版新版本
 * @pathParam apiVersion true
 * @queryParam projectFid true
 */
export function createSupplyBudgetVersionUsingPOST({ params, data }) {
  return request('supplyPlan/budgetVersion', {
    method: 'POST',
    params,
    data,
  });
}

/**
 * POST 创建供货计划版本【后台测试用】
 * @pathParam apiVersion true
 * @queryParam priceVersionId true
 * @queryParam versionType true
 */
export function createSupplyPlanVersionUsingPOST({ params, data }) {
  return request('supplyPlan/castDecisionVersion', {
    method: 'POST',
    params,
    data,
  });
}

/**
 * GET 供货计划版本信息
 * @pathParam apiVersion true
 * @queryParam versionId true
 */
export function getVersionDataUsingGET({ params, data }) {
  return request('supplyPlan/castDecisionVersionData', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 导出报表【待完善】
 * @pathParam apiVersion true
 * @queryParam versionId true
 */
export function exportUsingGET({ params, data }) {
  return request('supplyPlan/export', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 供货计划版本列表
 * @pathParam apiVersion true
 * @queryParam projectFid true
 * @queryParam versionType true
 */
export function versionListUsingGET({ params, data }) {
  return request('supplyPlan/versionList', {
    method: 'GET',
    params,
    data,
  });
}
